package com.monitorRoutine.monitorRoutineServer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.monitorRoutine.monitorRoutineServer.entity.SqlRecord;
import com.monitorRoutine.monitorRoutineServer.entity.SqlResult;
import com.monitorRoutine.monitorRoutineServer.mapper.SqlRecordMapper;
import com.monitorRoutine.monitorRoutineServer.mapper.SqlResultMapper;
import com.monitorRoutine.monitorRoutineServer.service.SqlRecordService;
import com.monitorRoutine.monitorRoutineServer.service.SqlResultService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Slf4j
@Service
public class SqlResultServiceImpl extends ServiceImpl<SqlResultMapper, SqlResult> implements SqlResultService {
    public boolean saveSqlRecordList(List<SqlResult> sqlResults){
        return this.saveBatch(sqlResults);
    }

}
